package com.changgou.goods.dao;

import com.changgou.goods.pojo.Para;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface ParaMapper extends Mapper<Para> {

    @Select("select name ,options FROM tb_para where template_id in(SELECT template_id FROM tb_category WHERE name=#{name})")
    public List<Map> findParaListByCategoryName(@Param("name")String name);
}
